package com.doyens.gmall.item.client;

import com.doyens.gmall.common.result.Result;
import com.doyens.gmall.item.client.fallback.ItemFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "service-item",fallback = ItemFeignClientFallback.class)
public interface ItemFeignClient {
    @GetMapping("api/item/{skuId}")
    //通过skuId获取详情页面所有信息
     Result getItem(@PathVariable("skuId") Long skuId);
}
